import unittest
from scripts.test01_login import TestLogin
from utils import Base_dir
import time
from tools.HTMLTestRunner import HTMLTestRunner

suite = unittest.TestSuite()
suite.addTests(unittest.makeSuite(TestLogin))

dir = Base_dir + '/report/reporter_{}.html'.format(time.strftime("%Y%m%d-%H%M%S"))

with open(dir, "wb") as f:
    runner = HTMLTestRunner(f, title="登录测试报告")
    runner.run(suite)
